<template>
  <div>
    <h3>Child...</h3>
    <p>{{ modelValue }}</p>
    <button @click="$emit('update:modelValue', modelValue + 1)">更新</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Child",
  props: {
    modelValue: {
      type: Number,
      required: true,
    },
  },
  emits: ["update:modelValue"],
  // mounted() {
  //   console.log(this.$attrs);
  // },
});
</script>
